package com.xdf.ecommerce;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;

/**
 * hystrix 监控站点的访问地址：http://127.0.0.1:9999/ecommerce-hystrix-dashboard/hystrix
 * 中间的 ecommerce-hystrix-dashboard 是 server.servlet.context-path
 *
 * hystrix 配置的被监控的URL：
 * http://127.0.0.1:8000/ecommerce-nacos-client/actuator/hystrix.stream
 * @author chanchaw
 * @create 2025-10-31 9:26
 */
@EnableHystrixDashboard
@EnableDiscoveryClient
@SpringBootApplication
public class HystrixDashboardApplication {
    public static void main(String[] args) {
        SpringApplication.run(HystrixDashboardApplication.class, args);
    }
}
